import { createRouter, createWebHashHistory } from 'vue-router'
const router = createRouter({
    history: createWebHashHistory(),
    routes: [
        {
            path: "/",
            redirect: '/index'
        },
        {
            name: "index",
            path: "/index",
            component: () => import('../views/index.vue')
        },
        {
            name: "page1",
            path: "/page1",
            component: () => import('../views/page1.vue')
        },
        {
            name: "page2",
            path: "/page2",
            component: () => import('../views/page2.vue')
        },
        {
            name: "page3",
            path: "/page3",
            component: () => import('../views/page3.vue')
        },
        {
            name: "page4",
            path: "/page4",
            component: () => import('../views/page4.vue')
        },
        {
            name: "page5",
            path: "/page5",
            component: () => import('../views/page5.vue')
        },
        {
            name: "page6",
            path: "/page6",
            component: () => import('../views/page6.vue')
        }
    ]
})

export default router